<template>
  <!--视图-->
  <div>
    {{form}}
  </div>
</template>

<script>
export default {
  name: "TestView",
  data() {//属性
    return {
      form:{}
    }
  }, methods: {//自定义方法
       list()
       {
        this.form= this.$route.params.data;
         console.log(this.$route.params.data)
       }
  }, created() { //钩子函数
     this.list();
  }
}
</script>

<style scoped>

</style>
